<?php

/**
* 确认订单控制器
*/
class ConfirmOrderController extends AuthController{

    /*确认订单
     * */
    public function index(){
        if(IS_POST){
            if(!is_array($_POST)) $this->error('参数错误');
			foreach ($_POST as $k => $v) {
				Cart::update(array('sid'=>$k,'num'=>$v));
			}
        }
        $this->assign('orderData',Cart::getAllData());
        $this->display();
    }
	
	
	
	
	
	
	
	
	
	
	
	
	
}
    
    
    
?>